Delta-AI: Local objectives for amortized inference in sparse graphical models