Backward production of K∗ (892) in the reactions K+N → KπN in hydrogen and deuterium for the incident momentum range 3–5 GeV/c