Protein-induced geometric constraints and charge transfer in bacteriochlorophyll-histidine complexes in LH2