Critical field measurements in superconductors using ac inductive techniques