Optimization of the silicon sensors for the CMS tracker