Understanding The Structure – Function Relationships In Metal (Oxy)Chalcogenides: Towards The Development Of Materials For Targeted Applications In Energy Conversion And Sensing