Investigation of hadronic cross sections of cosmic ray carbon and oxygen on BGO from 200 GeV to 10 TeV energy at the DAMPE experiment