Spectral stability of periodic NLS and CGL solutions