On the importance of ferroelectric domains for the performance of perovskite solar cells