Turkey, Greece reach understanding on 'general principles'