Coping with local geometric attacks by means of optic-flow-based resynchronization for robust watermarking