Tracking detector alignment using constrained vertex fits