Explain the factors affecting electron affinity. The charges on the ions.