Frustration of magnetic interactions in heavy fermion compounds: CeNi2-xSn2 and other 1:2:2 compounds