On parameter estimation for critical affine processes