Transition edge sensors for X-ray astronomy