The partial inverse nodal problem for differential pencils on a finite interval