Buckling of fibers in fiber-reinforced composites