Structural origin of reduced critical currents at YBa2Cu3O7–δ grain boundaries