A seismologically consistent husid envelope function for the stochastic simulation of earthquake ground-motions