Automatic Modular Abstractions for Template Numerical Constraints (Logical Methods in Computer Science, 2010)