Diode-pumped continuous wave and passively Q-switched Tm, Mg: LiTaO3 lasers