Model-independent constraints on dark energy and modified gravity with the SKA