Synchrotron and inverse Compton emission from expanding sources in jets - Application to SS 433