Bending of Layer-by-Layer Films Driven by an External Magnetic Field