German airline Lufthansa reaches deal with pilots on cost savings