Physics-informed Neural Networks to Model and Control Robots: a Theoretical and Experimental Investigation