Capacitance analysis of devices with electrically floating regions