Compact acoustooptic high-speed variable attenuator for high-power applications