Role of flexural phonons in carrier mobility of two-dimensional semiconductors: free standing vs on substrate