Gravar-mail: Principles of genome folding into topologically associating domains