The voltage (and hence the charge) is not getting distributed between the initially charged capacitor (2uF) and the uncharged capacitor (8uF) ... The voltage should get distributed like 8V and 2V after flipping the switch but that's not happening why??