When an object loses electrons it attains a