The energy distributions of electrons produced in multiphoton ionisation of rare gases