An Indian court has sentenced a police volunteer to life imprisonment for raping and killing a trainee doctor.