Method and device for optically recovering the synchronism of an optical digital signal