Structure, growth and magnetic property of hard magnetic CoPtP nanowires synthesized by electrochemical deposition