You write expressions for the waves at the interface (incident, reflected and transmitted) with unknown phases, and use the boundary conditions to find the relation between the different phases.
I don't have a reference off hand, but most textbooks on acoustics, vibration transmission, etc. should work through details of the maths.