g -factor engineering and control in self-assembled quantum dots