Nucleosynthesis of neutron-rich heavy nuclei during explosive helium burning in massive stars