A fiber optics sensor for strain and stress measurements in superconducting accelerator magnets