Commensurate and incommensurate magnetic phases in tetragonal PrNi2Si2 and TbNi2Si2