Voters in Oakland, California, have ousted Mayor Sheng Thao just two years after she narrowly won office to lead the liberal San Francisco Bay Area city.