Thermodynamic uncertainty relation for stochastic field theories : general formulation and application to the Kardar-Parisi-Zhang equation