Viscosity sensor with temperature measurement function based on multifunctional metal matrix composite