Model Hamiltonian for the conductivity oscillations of magnetic multilayers