Potential dependence of the structure and magnetism of electrodeposited Pd/Co/Au(111) layers