Alignment of the CMS silicon tracker during commissioning with cosmic rays