Modeling of Current–Voltage Characteristics of Thin-film Solar Cells Incorporating Bulk and Surface Recombination: application to perovskite solar cells