Spin and isospin dependence of the single-particle potential in nuclear matter