A three dimensional solution for the diffraction of an inhomogeneous plane wave by a wedge