Magnetic ordering in layered oxide structures: Fe3O4 thin films and Fe3O4/NiO superlattices