Monte Carlo simulation of a clover detector and its geometry optimization for coincidence summing corrections