Plane curves of genus p and degree 2p as projections of space curves of the same degree