Quantifying the rigidity of 2D carbides (MXenes).