Bridging gaps in demographic analysis with phylogenetic imputation