The edges and diagonals of convex pentagon $ABCDE$ are all colored either red or blue. How many ways are there to color the segments such that there is exactly one monochromatic triangle with vertices among $A$, $B$, $C$, $D$, $E$; that is, triangles whose edges are all the same color?

Let's think step by step and output the final answer within \boxed{}.
user