Spectral stability analysis for periodic traveling wave solutions of NLS and CGL perturbations