A neural network-based framework for financial model calibration