A Green's function for determining the deformation of the Earth under surface mass loads: 1. Theory