Optical properties of photosensitive fiber phase gratings