Solution-processing of chalcogenide materials for device applications