Flexible and semi-transparent perovskite solar cells