Determination of the calorimetric energy in extensive air showers