Estimating variance components in natural populations using inferred relationships