Combined optical-electrical modeling of perovskite solar cell with an optimized design