The effects of ionization feedback on star formation: a case study of the M 16 H II region