Continuous and discontinuous solutions for optimum thrust nozzles of given length