India and China agree to pull troops from border area