Variable selection to improve classification in structure-activity studies and spectroscopic analysis