Characterization of the Astro-E2 X-ray spectrometer