Environmentally Responsive Photonic Crystals