Formation of the 255-keV annihilation line near the magnetic poles of pulsars