Electrodeposition of micromagnets of CoPtW(P) alloys