Uniform lattices I. A generalization of topological Riesz spaces and topological Boolean rings