Thickness dependency of 180° stripe domains in ferroelectric ultrathin films: A first-principles-based study