Surface depletion field in 2D perovskite microplates: Structural phase transition, quantum confinement and Stark effect