Investigation of structure-property relations in transition metal based pnictides and chalcogenides for electrochemical energy storage, conversion and fuel production