The impact of barrier height distributions in tunnel junctions