added functionality  to compute the dos at a given energy