Privacy-preserving maximum likelihood estimation for distributed data