High p-type thermoelectric performance driven by a nearly flat band in single-layer CdSbS3