Wind turbine maker Vestas has replaced its CEO after its losses grew in the second quarter, but analysts say the struggling company has turned a corner.