Highly sensitive assay for acetylcholinesterase activity and inhibition based on a specifically reactive photonic nanostructure.