The application of optimal control techniques to the Shadowing approach for time averaged sensitivity analysis of chaotic systems