Optimization of Q-factor and resonance frequency measurements in partially calibrated resonant systems