Accretion by rotating magnetic neutron stars. II. Radial and vertical structure of the transition zone in disk accretion.