Measuring gaps using planar inductive sensors based on calculating mutual inductance