Improving stability of MXenes