An innovative method to optimize the maintenance policies in an aircraft: general framework and case study