The role of charge-transfer states in the spectral tuning of antenna complexes of purple bacteria