Energy transport and deposition by laser-generated fast electron and proton beams in solid targets and dense plasmas