Spallation and the generation of surface waves by an underground explosion