An effective medium model versus a network model for nanostructured solar cells