Measurement of branching fractions for the inclusive Cabibbo-favored K¯∗0(892) and Cabibbo-suppressed K∗0(892) decays of neutral and charged D mesons