Frequency- independent attenuators comprising an element controlled by an electric or magnetic variable