A concurrent multiscale method based on the alternating Schwarz scheme for coupling atomic and continuum scales with first-order compatibility