Energy confinement in shaped TCV plasmas with electron cyclotron heating