Modeling and optimizing the performance of plasmonic solar cells using effective medium theory