Theoretical analysis and experimental results on the modulated photocarrier grating technique