Adaptive learning control for robotic manipulators driven by permanent magnet synchronous motors