Datawatch buying Panopticon in $31.4M stock deal