Primary energy reconstruction from the charged particle densities recorded at 500 m distance from shower core with the KASCADE-Grande detector