Investigation of composition variations near grain boundaries in high-quality sintered samples of YBa2Cu3O7−δ