Criteria for similarity of triangles