Three-way ball valve