Domain decomposition-based coupling of physics-informed neural networks via the Schwarz alternating method