NC man sentenced to 22 years for raping six-year-old girl