Application of nuclear energy for environmentally friendly hydrogen generation