Title: Sequential gradient-restoration algorithm for optimal control problems with general boundary conditions