Vector-meson dominance and diffractive electroproduction of vector mesons