Self-focusing of coherent optical pulses in resonant absorbing media