Maximum Principle for Linear-Convex Boundary Control Problems applied to Optimal Investment with Vintage Capital.