Modelling the electro-thermal response of superconducting transition-edge X-ray sensors