Approximate solutions for randomly excited nonlinear systems by a generalized entropy functional