Embeddings between James spaces and applications