Molecular spin qubits based on lanthanide ions encapsulated in cubic polyoxopalladates: design criteria to enhance quantum coherence