Indonesian president sworn in for a second term