Faceting and Wetting Transitions of Anisotropic Interfaces and Grain Boundaries