The CMS Phase-1 pixel detector upgrade