In-plane uniaxial magnetic anisotropy in metallic multilayers