Transformations of faceted grain boundaries in high-Tcsuperconductors