Measurement of the gamma gamma* -> eta c transition form factor