Initial adsorption of Co on Cu(001): A first-principles investigation