Megaregolith thickness, heat flow, and the bulk composition of the Moon