Prediction of cell variations with pressure of ionic layered crystal Application to the matlockite family