Site preference of CO chemisorbed on Pt(111) from density functional calculations