Pisqrd: A Novel Variational Scheme to Identify Dinamical Domains in Proteins