what is the main reason why atoms form chemical bond