Germany’s far-right AfD party becomes main opposition in key states