by measuring photoelectron spectrum