Measuring the energy input substitution and output effects of energy price changes and the implications for the environment