Treatment of Medical Waste Based on Spectroscopy