Mobility of two-dimensional materials from first principles in an accurate and automated framework