[2410.06277] Is Pontryagin's Maximum Principle all you need? Solving optimal control problems with PMP-inspired neural networks