Geochemical aspects of phosphate recovery from livestock manure