A Chemical and Historical Analysis of Beer: Discovering Brewing Styles and Beer Stages