when a wave crosses a surface at an angle from one medium into another, why does it change directions aS IT MOVES ACROSS THE BOUNDARY INTO THE NEW MEDIUM