Assessment of respiratory system mechanics using neural networks: a prospective study in a porcine model