Computing grain boundary diagrams of thermodynamic and mechanical properties