Extracting geomechanical information from borehole microseismic data with machine learning