Unravelling transient phases during thermal oxidation of copper for dense CuO nanowire growth