Generalized Ramsey interferometry explored with a single nuclear spin qudit