How do similarity transformations determine the angle and side length conditions necessary for triangle similarity?