Ion beam irradiation of high-temperature superconductors: From nano-size defects to the fabrication of nanodevices