DeTriever: Decoder-representation-based Retriever for Improving NL2SQL In-Context Learning