Long-period grating-based sensor for chemical sensing applications