Compressive THz imaging and Hadamard spectroscopy for space applications