Radius and magnetic field from synchrotron self-absorbed radio and inverse-Compton X-ray observations of supernovae