Anomalous spin waves and the commensurate-incommensurate magnetic phase transition in LiNiPO4