The design and performance of Static Var Compensators for particle accelerators