Pricing options and computing implied volatilities using neural networks