Continuous-wave and mode-locking operation of Tm:YAP lasers near 1.8 μm