Neural Control Variates with Automatic Integration