A neural network-based controller for a single-link flexible manipulator using the inverse dynamics approach