A micromechanics approach to the study of hydrogen transport and embrittlement