Construction of compactifications using essential semilattice homomorphisms