Fabrication and magnetic properties of CoPd nanowire arrays