Technical Proposal for the Phase-II Upgrade of the CMS Detector