Electrical spin driving by g-matrix modulation in spin-orbit qubits