Full space device optimization for solar cells