Optimal design of hybrid rockets with self-pressurising oxidizer