Recovering the systemic redshift of galaxies from their Lyman alpha line profile