when a seismic wave hits a boundary of rock with a different seismic velocity, what two things happen to the wave (other than change its speed)?