Recent progress on the smart membranes based on two-dimensional materials