The determination of the poles of the mapping function and their use in numerical conformal mapping