The energy potential from livestock waste recovery: a technical and economic analysis