Weed detection based on structural information using an imaging spectrograph