Method for developing HPGe detector model in Monte Carlo simulation codes