Spectral unmixing and anomaly detection for hyperspectral images