Exact and approximate error bounds for physics-informed neural networks