Local stress distribution in composites for pulled-out fibers with axially varying bonding