Molecular dynamics study of the photodesorption of CO ice