A Detailed Monte Carlo Study of the Performance of a Silicon Crystal for X-ray Detection in the Diagnostic Range