Photocarrier grating technique in mesoporous silicon