Second-order optimality conditions for singular extremals in optimal control problems with equality endpoint constraints. (July 2017)