Mass spectrum of the 2D Ashkin-Teller model in an external magnetic field