The norm estimate of the difference between the Kac operator and the Schrödinger semigroup: A unified approach to the nonrelativistic and relativistic cases