Enhanced thermoelectric performance of ternary compound Cu3PSe4 by defect engineering