Nanoparticles as radiosensitizers in photon and hadron radiotherapy