The pair-replica-mean-field model for intensity-based neural networks