Dislocation exhaustion and ultra-hardening of nanograined metals by phase transformation at grain boundaries