Off-shell generalized parton distributions and form factors of the pion