Population density is a key factor in declining human fertility