Optical anisotropy readout in solid-state porphyrins for the detection of volatile compounds