Grain-boundary dissipation in high-Tc superconductors