Prove that the areas of similar triangles have the same ratio as the squares of corresponding altitudes.