Embeddings of κ-metrizable spaces into function spaces