Retarding Field Energy Analysis for Ion Temperature Measurement in the Tokamak Edge