Morita equivalence of quasi-primal algebras and sheaves