Photonic crystal as a refractometric sensor operated in reflection mode