Understanding device-structure-induced variations in open-circuit voltage for organic photovoltaics.