A relaxation method for the energy and morphology of grain boundaries and interfaces. (September 2016)