Optimizing solar panel installation