what type of triangles can be solved using the law of cosines​