Thermal-neutron capture investigation of the N = 107 isotones of 177Yb and 179Hf