On bounds for the energy of graphs and digraphs