Non-Parametric Framework for Detecting Spectral Anomalies in Hyperspectral Images