Mechanistic Aspects of Semiconductor Photoelectrochemistry: The Behavior of Si and GaAs in Nonaqueous Solvents