Asymmetric acoustic transmission with a lossy gradient-index metasurface