Process Neural Networks: Theory and Applications