The photodissociation and ionization fronts in M17-SW localized with FIFI-LS on board SOFIA