Bulk and surface recombination losses in planar perovskite solar cells