Refractive-index changes and long-period fiber gratings made by rapid solidification