Inverse problems of the Darboux theory of integrability for planar polynomial differential systems