find the minimum deviation. Assume the surrounding medium