Adaptive learning control of nonlinear systems with applications to robot manipulators