Molecular Design and Engineering of Photonic Crystal Hydrogels for Biosensing Applications