Realization of positive-operator-valued measures by projective measurements without introducing ancillary dimensions