Nonlinear impulsive optimal control synthesis with optimal impulse timing: A pseudo-spectral approach. (30th March 2018)