Integrated photonic sensors for the detection of biomarkers and gases