Low-complexity lossless/near-lossless compression of hyperspectral imagery through classified linear spectral prediction