Physics-informed machine learning as a kernel method