Unambiguous discrimination of nonorthogonal quantum states in cavity QED