Trajectory Optimization To Minimize The Environmental Impact Of Departing And Arriving Aircraft