Specific heat of quantum elastic systems pinned by disorder