Symmetry breaking patterns for two coupled complex scalar fields at finite temperature and in an external magnetic field