Quenching efficiciency of "hot" polar molecules by 4He buffer at ultralow energies: quantum results for MgH and LiH rotations