Simple method for estimating the memory diagram in single mode semiconductor lasers