Improvements of ion implanted waveguides in Nd:YAG and LiNbO3 using pulsed laser anneals