Statistical physics of loopy interactions: Independent-loop approximation and beyond