The formation of an ion can best be compared to