A Novel Adaptive Controller for Robot Manipulators Based on Active Inference