CMMSE: A technique for generating adapted discretizations to solve partial differential equations with the generalized finite difference method