Neural boundary shape functions in physics-informed neural networks for discontinuous and high-frequency problems