Myanmar's former military chief, Min Aung Hlaing, is sworn in as president, promising democracy but facing civil war and international isolation.