Magnetostatic interactions in bilayer films