Merz vows to stay as AfD wins 38.2% and CDU exits a state parliament