Zero-dimensional energy balance modelling of the CTX spheromak experiment