Heating of the Moon by heterogeneous accretion