The diffraction of an inhomogeneous plane wave by a wedge