Experimental determination of sampling fluctuations in uranium and lead hadronic calorimeters