A semi-empirical model for the X-ray Si(Li) detector response function