A vector thermodynamics for anisotropic surfaces: I. Fundamentals and application to plane surface junctions