Monte Carlo analysis of the tricritical behavior in a three-dimensional system with a multicomponent order parameter: The Ashkin-Teller model