Mechanisms of alkaline phosphatase formation in Escherichia coli and acid phosphatase formation in Saccharomyces cerevisiae