Joint active user detection and channel estimation for massive machine-type communications