An atom becomes negatively charged by