Magnetic properties of very thin films