Analysis of triangular waveguides of arbitrary dimensions