Permanent residence of a foreigner entrusted to foster care