Text this: Efficient Optical Sensing Based on Phase Shift of Waves Supported by a One-Dimensional Photonic Crystal