Wisconsin Rapids man sentenced to prison in heroin overdose case