Electronic and optical properties of potential solar absorber Cu3PSe4