First-principles calculations of the structural, electronic and optical properties of IIA-IV antifluorite compounds