Search for heavy right-handed neutrinos at the LHC and beyond in the same-sign same-flavor leptons final state