Gravar-mail: Evolutionary constraints on structural similarity in orthologs and paralogs