Bulk-edge and bulk-hinge correspondence in inversion-symmetric insulators