implement modified nodal analysis