Pair production with electron capture in relativistic heavy-ion collisions