Text this: Performance optimization and defect studies of Pb-free CsSnBr3-based perovskite solar cells