Multifrequency VLA observations of GHz-peaked-spectrum radio cores