Astrophysics and spectroscopy with microcalorimeters on an electron beam ion trap