On the degree and genus of smooth curves in a projective space