The detectability of Lyα emission from galaxies during the epoch of reionization