Structural and spectroscopic investigation of the charge-ordered, short-range ordered, and disordered phases of the Co3O2BO3 ludwigite