Second order QCD contributions to thrust and spherocity