Generation of electromagnetic fpe and 2fpe waves in the Earth's electron foreshock via linear mode conversion