Photosensitization effects of porphyrin on n-Si(111) and n-GaAs(100)