The designability of protein switches by chemical rescue of structure: mechanisms of inactivation and reactivation.