Synthesis of transition metal sulfide nanostructures for water splitting