Upon dealing with leakage current and parasitic effects in a realistic model of a capacitor, what sort of methods can then be applied?