Which type of bond is formed when an atom of potassium transfers an electron to a bromine atom?