Performance comparison of planar and mesostructured perovskite solar cells