Bates sworn in as Baltimore City State's Attorney