A Monte Carlo program to design a multiple module transition radiation detector