Dismantling or mechanical processing of waste for the recovery of materials during separation, disassembly, pre-processing or upgrading