Stress effects on optical waveguides in ion implanted diamond