Pontryagin maximum principle for general Caputo fractional optimal control problems with Bolza cost and terminal constraints