Precipitation of calcium phosphates from electrolyte solutions