Ductile deformation and the origin of layered gabbro in ophiolites