On Wiener index of graphs and their line graphs