Measurements of energy flow distributions of 10 GeV/c hadronic showers in iron and in aluminium