A super-Earth and sub-Neptune transiting the late-type M dwarf LP 791-18