What are the different gases formed when an electric current is passed through water during the process of electrolysis?