A modulation technique for discriminating between homogeneous and inhomogeneous ODMR lines