Network of flatband solar cells as a model for solid-state nanostructured solar cells