Sustainability analyses of photovoltaic electrolysis and magnetic heat engine coupled novel system used for hydrogen production and electricity generation