Buffalo shooter pleads guilty to murder, terrorism charges