Analysis of the reaction π−p → π0ηn at 40 GeV/c beam momentum