Learning Free Energies from Molecular Simulation using Artificial Neural Networks