Molecularly imprinted photonic hydrogel sensor for optical detection of L-histidine