Spherical versus flat models of coseismic and postseismic deformations