CFD calculations of a hydrokinetic turbine in uniform and sheared inflows