Oil companies closing hiring gap for women but struggling to retain them