Beam-foil spectroscopy of the Cu I and Zn I isoelectronic sequences