Accelerate Monte Carlo Simulations with Restricted Boltzmann Machines