When light strikes the second medium what are the two things that happen?