The effect of magnetic and optic field in water electrolysis