Laboratory simulation of cometary X-rays using a high-resolution microcalorimeter