Self-Adaptive Physics-Informed Neural Networks using a Soft Attention Mechanism