divisors on real algebraic curves and embeddings into real projective spaces