Analyzing synthesis routes for BaCuPO4: implications for hydrogen evolution and supercapattery performance