Isochoric heating in heterogeneous solid targets with ultrashort laser pulses