A-NeSI: A Scalable Approximate Method for Probabilistic Neurosymbolic Inference