Automorphism groups of algebras of triangular matrices