Aerosol composition of hot giant exoplanets dominated by silicates and hydrocarbon hazes