Efficient physics-informed neural networks using hash encoding