Use of a neural network and Monte Carlo simulations to determine the optical coefficients with spatially resolved transmittance measurements