Reversible binding of metal ions onto bacterial layers revealed by protonation-induced ATR-FTIR difference spectroscopy.