A unified fatigue life model based on energy method