Inferring contemporary and historical genetic connectivity from juveniles