A FrFT based method for measuring chromatic dispersion and SPM in optical fibers