Rogers–Shephard and local Loomis–Whitney type inequalities