Numerical investigation of dynamic stall of an oscillating wing