Ab-initio simulations of two-dimensional materials-based transistors