STABILIZATION OF SPECTRAL METHODS FOR THE ANALYSIS OF SINGULAR SYSTEMS USING PIECEWISE-CONSTANT BASIS FUNCTIONS