Effect of thickness on the electronic structure and optical properties of quasi two-dimensional perovskite CsPbBr3 nanoplatelets