Energy estimation of cosmic rays with the Engineering Radio Array of the Pierre Auger Observatory