A pulse generation system based on new method for testing performance of high-resolution nuclear spectroscopy systems