Bromide ion-functionalized nanoprobes for sensitive and reliable pH measurement by surface-enhanced Raman spectroscopy.