Waveguide coupler formed by a graded photonic crystal