The infrared echo of a type II supernova with a circumstellar dust shell: applications to SN 1979c and SN 1980k