Children born in South Africa to foreign parents not automatically entitled to SA citizenship, says court