Ray Methods for Nonlinear Waves in Fluids and Plasmas