Study of Influential Parameters of the Caffeine Extraction from Spent Coffee Grounds: From Brewing Coffee Method to the Waste Treatment Conditions