High spin structure of the neutron-rich nuclei 137I and 139Cs