Population structure and coalescence in pedigrees: comparisons to the structured coalescent and a framework for inference