Incommensurate magnetic phases in doped high Tc compounds