Nonlocal machine-learned exchange functional for molecules and solids | Synapse