An algorithm to calibrate and correct the response to unpolarized radiation of the X-ray polarimeter on board IXPE — arXiv2