Linear viscoelastic properties of emulsions and suspensions with thermodynamic and hydrodynamic interactions