The 2+2 and 3+1 four-family neutrino mixing at the neutrino factory