Correlation of coercivity and microstructure of thin CoFe films