Compressive sampling in configuration interaction wavefunctions