Surface-plasmon resonance as a sensitive optical probe of metal-film properties