Real-time heat capacity measurement during thin-film deposition by scanning nanocalorimetry