Modulated crystals and almost periodic measures