Enhancing the performance of hard-constrained gradient-enhanced physics-informed neural networks using a residual adaptive sampling method | Synapse