Self-assembly synthesis and magnetic studies of Co–P alloy nanowire arrays