Superpotentials in IIA compactifications with general fluxes