An analytical model for calculating thermal properties of two-dimensional nanomaterials