The effect of Lyman α radiation on mini-Neptune atmospheres around M stars: application to GJ 436b