Ferroelectricity in Layered Perovskites as a Model of Ultra-Thin Films