External photoelectric effect and its application