The wave function and the effective action in quantum cosmology: Covariant loop expansion