Gravar-mail: Sampling methods for the quasistationary regime of epidemic processes on regular and complex networks