An analytic torsion for graded D-branes