Fluorinating hexagonal boron nitride into diamond-like nanofilms with tunable band gap and ferromagnetism.