Global centers of a family of cubic systems