Nonadditive measure-theoretic pressure and applications to dimensions of an ergodic measure