The Molecular Switching Mechanism at the Conserved D(E)RY Motif in Class-A GPCRs.