On the synthesis of spatial cycloidal gears