The relationship between the X-ray and radio components in the compact steep-spectrum quasar 3C 48