Analysis of pion electroproduction data in terms of a pion distribution function of the proton