Effects of a sheared toroidal rotation on the stability boundary of the MHD modes in the tokamak edge pedestal