Compressive effects in melting of palladium thin films studied by ultrafast x-ray diffraction