Near-infrared imaging of gigahertz-peaked-spectrum radio galaxies: tracing the evolution of giant ellipticals?