Describe two ways in which an ion forms from an atom