Two-dimensional weak topological insulators in inversion-symmetric crystals