Purification of crude selenium by vacuum distillation and analysis