Hungary's parliament elects Orban critic as new president