The Pontryagin maximum principle and transversality conditions for a class of optimal economic growth problems