Improved bounds for the chromatic index of graphs and multigraphs