Spain edges out of recession