Gravar-mail: Characterizing the 3D structure and dynamics of chromosomes and proteins in a common contact matrix framework