Dirac operators, shell interactions and discontinuous gauge functions across the boundary