Gravar-mail: State-dependent doubly weighted stochastic simulation algorithm for automatic characterization of stochastic biochemical rare events