Microfluidic system with a switching valve for enhanced signal stability of QCM measurements in liquids