Measurement of the gamma gamma* -> pi0 transition form factor