Real-time temperature monitoring and control for power electronic systems under variable active cooling by characterisation of device thermal transfer impedance