A maximum likelihood approach to correlation dimension and entropy estimation