Bias-free shear estimation using artificial neural networks