Evaluating the performance of Cs2PtI6−xBrx for photovoltaic and photocatalytic applications using first-principles study and SCAPS-1D simulation