An Indian court has sentenced a police volunteer to life in prison after finding him guilty of the rape and killing of a trainee doctor last year.