Sharp Bounds on (Generalized) Distance Energy of Graphs