Quantum phases of mixtures of atoms and molecules on optical lattices