Semiglobal boundary rigidity for Riemannian metrics