Thickness effect on the structural, electronic and energetic properties of the cubic KMgF3 (0 0 1) surfaces: A first-principles study