Myanmar’s former junta chief elected president by parliament