Theft linked to gang activity; man sentenced to six years