Calcium phosphate precipitation in catanionic templates