Different mechanisms of cluster explosion within a unified smooth particle hydrodynamics Thomas-Fermi approach: Optical and short-wavelength regimes compared