For details see "Solving incommensurate modulated structures" in Tutorials of VEC