Theory of electron-spin-resonance linewidth and line-shift effects in spin-glasses with anisotropy and zero remanent magnetization