Neutrinos and Ultra-high-energy Cosmic-ray Nuclei from Blazars