Locally activated Monte Carlo method for long-time-scale simulations