Compounds of elements having a valency of 2