Carrier separation and transport in perovskite solar cells studied by nanometre-scale profiling of electrical potential