Emission-line stars in M31 from the SPLASH and PHAT surveys