Selective encryption in the CCSDS standard for lossless and near-lossless multispectral and hyperspectral image compression