Reflecting tidal wave beams and local generation of solitary waves in the ocean thermocline