High-harmonic x-ray undulator radiation for nanoscale-wavelength free-electron lasers