A practical method for constructing N-quadrupole- and N-octupole-phonon states