Automatic numerical integration techniques for polyatomic molecules. Backward trimming