Errors in turbulence measurements with a sonic anemometer