Kinetic equations for neutrino spin- and type-oscillations in a medium