Minimal Distance to Approximating Noncontextual System as a Measure of Contextuality