Confinement effects on electroconvective instability