Crossover between in-plane and perpendicular anisotropy in Ta/CoxFe100-x/MgO films as a function of Co composition