A Compiler for Sound Floating-Point Computations using Affine Arithmetic