Groebner basis techniques to compute weight distributions of shortened cyclic codes