Interpretation of ring-current shifts in proteins: application to phage λ repressor