Surface-plasmon-based dispersive detection and spectroscopy of ultracold atoms