Frequency conversion in novel materials and its application to high resolution gas sensing