Optical nonlinearities in semiconductor polariton waveguides