Corporacions locals, mancomunitats, diputacions