Control and automation of mashing in the brewing process