Temperature effects in contacts between a metal and a semiconductor nanowire near the degenerate doping