Nearly perfect conversion of a propagating wave into a surface wave