Characterisation of the muon beams for the Muon Ionisation Cooling Experiment