Resonantly pumped 1645 nm Q-switched Er:YAG laser with a ring cavity