Fast control of the transverse structure of a light beam using acousto-optic modulators