Measurement of minimum horizontal stress from logging and drilling data in unconventional oil and gas