Top quark mass measurements at and above threshold at CLIC