Stress measurement in a rock bed based on emission memory effects