A Study of Ultra-Low Friction in Two-Dimensional Materials using Density-Functional Theory