A photonic crystal sensor based on the superprism effect