Matthew Perry's one-time assistant Kenneth Iwamasa, who injected the Friends star with ketamine on the day he died, has been sentenced to jail.