Immersions and embeddings in complex projective spaces