Energy levels of QED in a Euclidean formulation