Text this: Structure of interfaces in layered ferroelectrics of first and/or second order transition