Detection of distant evolutionary relationships between protein families using theory of sequence profile-profile comparison