who invented beer