Existence of symplectic 3-forms of $G_2$-type or $\tilde G_2$-type on 7-manifolds