Stacked Intelligent Metasurfaces Enabled Joint Signal Processing and Communication in the Wave Domain