E4: Energy-Efficient DNN Inference for Edge Video Analytics Via Early-Exit and DVFS