Influence of vibrations on electron transport through nanoscale contacts