Why are structures built on soft sand or mud often destroyed in an earthquake when nearby structures built on bedrock remain essentially undamaged?