Accretion and photodesorption of CO ice as a function of the incident angle of deposition