Generalized Spacecraft Formation Design through Exploitation of Quasi-Periodic Tori Families