A GENERALIZATION OF THE BISMUT-ELWORTHY FORMULA