Generalized parton distributions of the pion in a Bethe-Salpeter approach