Structural origin of dynamic heterogeneity in three-dimensional colloidal glass formers and its link to crystal nucleation