the vending f waves when passing from one medium to another