Viscosity of liquids from the transfer function of microcantilevers