Adaptive friction compensation in DC motor drives