Estimation or adaptation of motor parameters, e.g. rotor time constant, flux, speed, current or voltage