Increased acoustic and electromagnetic energy deposition in a layered tissue model