Modes in buried planar optical waveguides with graded-index profiles