A Method for Edge Detection in Hyperspectral Images Based on Gradient Clustering