Text this: Advanced photonic structures for biological and chemical detection