In what ways did geography shape the lives of ancient Chinese?