Explain the formation of ionic bonds with examples 7