Computer simulation of grain growth—IV. Anisotropic grain boundary energies