Two-quasiparticle K-isomers and pairing strengths in the neutron-rich isotopes Er-174 and Er-172