LEAP nets for power grid perturbations