The finite and spectral cell methods for smart structure applications: transient analysis