Joint optimisation of application QoS and energy conservation in grid environment