Structural domains in thin films of ferroelectrics and multiferroics door