Theory of the in-plane photoelectric effect in two-dimensional electron systems