Adaptive friction compensation in robot manipulators