Inelastic Neutrino-Nucleus Interactions within the Spectral Function Formalism