Critical metrics with respect to Ray-Singer analytic torsion and Quillen metric