The AME2016 atomic mass evaluation (I). Evaluation of input data; and adjustment procedures