Photoelectromotive Forces in Inhomogeneous Semiconductors