Design, synthesis, and energy-related applications of metal sulfides