Application of optical techniques to detect chemical and biological agents