How to choose capacitors in circuits