Viscosity and elastic constants of amorphous Si and Ge