A study of size-dependent properties of MoS2 monolayer nanoflakes using density-functional theory