Fredholm Neural Networks for forward and inverse problems in elliptic PDEs