Variational principles for the static electric and magnetic polarizabilities of anisotropic media with perfect electric conductor inclusions