Immunization in an affine term structure framework