How can you tell that ionic bonding will take place between metals and nonmetals?