Energy flow in a hadronic cascade: Application to hadron calorimetry