Hausdorff moment problem and maximum entropy: a unified approach