Integration of programmable microfluidics and on-chip fluorescence detection for biosensing applications