A theoretical analysis of cold sintering