What drives the switch to modern energy? Linkages and gender implications