Text this: Theoretical evaluation on the operation of the high-performance CuPSe-based photonic devices for solar cell and photodetector applications