Rotational spectroscopy, tentative interstellar detection, and chemical modeling of N-methylformamide