X-point potential well formation in diverted tokamaks with unfavorable magnetic field direction