In situ study of the antibacterial activity and mechanism of action of silver nanoparticles by surface-enhanced Raman spectroscopy.