Robust Lyapunov-Based Control Methods Using Neural Networks for Additive Friction Stir Deposition and Functional Electrical Stimulation Applications