Comparative study of three-nucleon potentials in nuclear matter