Electronic structure of single ultrasmall electron devices and device arrays