Local arithmetic Siegel--Weil formulas for quadratic forms with almost self-dual level