Analyzing food for nutrition labeling and hazardous contaminants