Controlled synthesis, phase formation, growth mechanism, and magnetic properties of 3-D CoNi alloy microstructures composed of nanorods