New method of calculating calorific values from elemental compositions of fossil fuels