Wood’s Anomalies in Self-diffraction on Waveguides