A facile method to evaluate the influence of trap densities on perovskite solar cell performance