Electron temperature and density profile evolution during the edge-localized mode cycle in ohmic and electron cyclotron-heated H-mode plasmas in TCV