X-ray spectroscopy of the Hertzsprung-gap giant star 31 Com, observed with XMM-newton