Rural electrification and capacity expansion with an integrated modeling approach