Development of a tool for the analysis and optimisation of atmospheric re-entry trajectories