Identification of molecular quantum states using phase-sensitive forces