Analysis of changes of cavity volumes in predefined directions of protein motions and cavity flexibility