Capacitors in which the capacitance is varied by mechanical means