Solid-liquid interfacial tensions by the dihedral angle method. A mathematical approach