Structure-function relationships of phosphatases