The inverse problem for differential pencils on a star-shaped graph with mixed spectral data