Buffalo mass shooting suspect pleads guilty to state charges