Maximum-likelihood estimation in ptychography in the presence of Poisson–Gaussian noise statistics