High-spin studies of neutron-deficient A=138 nuclei: 138Eu and 138Gd