An improved quasar detection method in EROS-2 and MACHO LMC data sets