Study of phase transformations in Co/CoCo2O4 nanowires