code to compute per-stimulus power spectrums of both stim amplitude envelope and raw lFP