Ab initio investigation of the noncollinear magnetic structure of CeFeAsO