D-brane approach to black hole quantum mechanics