Iowa teen who killed rapist sentenced