Vibration-rotation problem for triatomic molecules with two large-amplitude coordinates