Inferring Cosmological Parameters with Evidential Physics-Informed Neural Networks