Temperature and electric field control of the bandgap in electrotoroidic nanocomposites by large-scale ab initio methods