Viscosity of xenon and ethane in the critical region