Origin of the magnetic anisotropy in ferromagnetic layers deposited at oblique incidence