Multiphoton photoluminescence contrast in switched Mg:LiNbO3 and Mg:LiTaO3 single crystals