Nonfactorization and final state interactions in $(B, B_s) \rightarrow \psi P$ and $\psi V$ decays