GM recalls more than 300,000 SUVs, sedans for headlamps that go dark