Overcoming the hidden environmental costs of solar energy