Rapid remote sensing by spectrum matching technique: 2. Application in the laboratory and in lunar observations