Influence of disorder and deformation on the optical properties of a two-dimensional photonic crystal waveguide