Simulations of particle beam heating of foils for studies of warm dense matter