Electrically tunable electron g factors in coupled InAs/GaAs pyramid quantum dots