Transfinite self-idealization and commutative rings of triangular matrices