Electrostriction measurement in optical fibers