Unraveling the surface state of photovoltaic perovskite thin film