Towards real-time life estimation of capacitors subjected to time-varying temperature