Effects of tensor forces in nuclear spin–orbit splittings from ab initio calculations