Electron and ion beam induced heating effects in solids measured by laser interferometry