Hybrid Density Functional Study of Structural and Electronic Properties of Functionalized \ce{Ti_{n+1}X_n} (X= C, N) monolayers